import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import HomeContent from '@/components/Home/HomeContent'
import Order from '@/components/Order'
import Personal from '@/components/Home/Personal'
import AppDownload from '@/components/AppDownload'
import City from '@/components/City'
import Sousuo from '@/components/Sousuo'
import FangcheLvxing from '@/components/FangcheLvxing'
import Huanqiu from '@/components/Huanqiu.vue'
import Scenery from '@/components/Scenery'
import SceneryOrder from '@/components/Scenery/ScenerySection/Order'
import SceneryMeet from '@/components/Scenery/ScenerySection/Meet'
import SceneryStrategy from '@/components/Scenery/ScenerySection/Strategy'
import SceneryYouji from '@/components/Scenery/ScenerySection/Youji'
import Qiehuan from '@/components/Qiehuan'
import Introduce from '@/components/Introduce'
import Sheying from '@/components/Sheying'
import SousuoHome from '@/components/SousuoHome'
import Luying from '@/components/Luying'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      children: [
        {
          path: '/home/homecontent',
          name: 'HomeContent',
          component: HomeContent
        },
        {
          path: '/home/personal',
          name: 'Personal',
          component: Personal
        }
      ],
      redirect: '/home/homecontent'
    },
    {
      path: '/home/order',
      name: 'Order',
      component: Order
    },
    {
      path: '/appdownload',
      name: 'AppDownload',
      component: AppDownload
    },
    {
      path: '/city',
      name: 'City',
      component: City
    },
    {
      path: '/sousuo',
      name: 'Sousuo',
      component: Sousuo
    },
    {
      path: '/fangchelvxing',
      name: 'FangcheLvxing',
      component: FangcheLvxing
    },
    {
      path: '/huanqiu',
      name: 'Huanqiu',
      component: Huanqiu
    },
    {
      path: '/scenery',
      name: 'Scenery',
      component: Scenery,
      children: [
        {
          path: '/sceneryOrder',
          name: 'SceneryOrder',
          component: SceneryOrder
        },
        {
          path: '/sceneryMeet',
          name: 'SceneryMeet',
          component: SceneryMeet
        },
        {
          path: '/sceneryStrategy',
          name: 'SceneryStrategy',
          component: SceneryStrategy
        },
        {
          path: '/sceneryYouji',
          name: 'SceneryYouji',
          component: SceneryYouji
        }
      ],
      redirect: '/sceneryOrder'
    },
    {
      path: '/qiehuan',
      name: 'Qiehuan',
      component: Qiehuan
    },
    {
      path: '/introduce',
      name: 'Introduce',
      component: Introduce
    },
    {
      path: '/sheying',
      name: 'Sheying',
      component: Sheying
    },
    {
      path: '/sousuoHome',
      name: 'SousuoHome',
      component: SousuoHome
    },
    {
      path: '/luying',
      name: 'Luying',
      component: Luying
    }
  ]
})
